package com.example.api.mybatis;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomeController {

    @RequestMapping("index")
    public ModelAndView index() {
        ModelAndView view = new ModelAndView();
        view.setViewName("index");
        return view;
    }

    //主页
    @RequestMapping("home")
    public ModelAndView home() {
        ModelAndView view = new ModelAndView();
        view.setViewName("home");
        return view;
    }

    //项目管理
    @RequestMapping("project")
    public ModelAndView project() {
        ModelAndView view = new ModelAndView();
        view.setViewName("project");
        return view;
    }

    //系统设置
    @RequestMapping("syscfg")
    public ModelAndView syscfg() {
        ModelAndView view = new ModelAndView();
        view.setViewName("syscfg");
        return view;
    }
    //系统管理
    @RequestMapping("sysmgm")
    public ModelAndView sysmgm() {
        ModelAndView view = new ModelAndView();
        view.setViewName("sysmgm");
        return view;
    }
    //数据测量
    @RequestMapping("data_measure")
    public ModelAndView data_measure() {
        ModelAndView view = new ModelAndView();
        view.setViewName("data_measure");
        return view;
    }

    //调试指导
    @RequestMapping("guide")
    public ModelAndView guide() {
        ModelAndView view = new ModelAndView();
        view.setViewName("guide");
        return view;
    }

}
